package org.example.hashmap;

import java.util.HashMap;
import java.util.Map;

public class HashMapTest {

    public static void main(String[] args) {
        Map<Bean, Object> map = new HashMap<>();

        Object put = map.put(new Bean(), "0");
        System.out.println(put);
        put = map.put(new Bean(), "1");
        System.out.println(put);
    }

    static class Bean {

        @Override
        public int hashCode() {
            return 0;
        }
    }
}
